﻿@using com.hyrentals.webcommon.extensions
@using com.hyrentals.webportal.Config
@using com.hyrentals.data

@model com.hyrentals.data.RV
@{
    Html.AddStyle("css/rv");
    Html.AddTailScript("js/rv-address");

    string calendarUrl = string.Format("/rv/{0}/edit/calendar", Model.Id);
    string pricingUrl = string.Format("/rv/{0}/edit/pricing", Model.Id);
    string overviewUrl = string.Format("/rv/{0}/edit/overview", Model.Id);
    string automotiveUrl = string.Format("/rv/{0}/edit/automotive", Model.Id);
    string interiorUrl = string.Format("/rv/{0}/edit/interior", Model.Id);
    string photosUrl = string.Format("/rv/{0}/edit/photos", Model.Id);
    string addressUrl = string.Format("/rv/{0}/edit/address", Model.Id);
}

<div class="layout-primary">
    <div class="layout-primary-left">
        <ul class="manage-rv-nav">
            <li><a href="@calendarUrl">Calendar</a></li>
            <li><a href="@pricingUrl">Pricing</a></li>
            <li><a href="@overviewUrl">Overview</a></li>
            <li><a href="@automotiveUrl">RV Details</a></li>
            <li><a href="@photosUrl">Photos</a></li>
            <li><a class="active" href="@addressUrl">Address</a></li>
        </ul>
    </div>
    <div class="layout-primary-middle">
        <form id="J_Address" class="form-s1 form-address" action="" method="post">
            <div class="valid-simple">
            <input type="hidden" value="@Model.Id" name="id"/>
                <div class="row clearfix">
                    <label for="rv_zip" class="label">Zip</label>
                    <div class="right">
                        <p class="clearfix"><input id="rv_zip" class="input-text" type="text" name="zip" value="@Model.Zip" data-msgbox="#msg_rv_zip" /></p>
                        <p id="msg_rv_zip" class="msg" style="display: none;"></p>
                    </div>
                </div>
                <div class="row clearfix">
                    <label for="rv_address" class="label">Address</label>
                    <div class="right">
                        <p class="clearfix"><textarea id="rv_address" class="input-textarea" rows="6" style="width: 300px;" name="address" data-msgbox="#msg_rv_address">@Model.Address</textarea></p>
                        <p id="msg_rv_address" class="msg" style="display: none;"></p>
                    </div>
                </div>
                <div class="row clearfix">
                    <a id="J_Sumbit" href="javascript:;" class="btn btn-large submit">Save</a>
                </div>
            </div>
        </form>
    </div>
    <div class="layout-primary-right"></div>
</div>